// cover some element-ui styles
.d-flex {
  display: flex !important;
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-scrollbar__wrap {
  box-sizing: border-box;
  overflow-x: hidden !important;
  margin-bottom: 0 !important;
}

.el-scrollbar__view {
  overflow: hidden;
}

.el-rate {
  display: inline-block;
  vertical-align: text-top;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.el-upload__tip {
  line-height: 1.2;
}

.el-tag-mix {
  margin-bottom: 10px;
  + .el-tag-mix {
    margin-left: 10px;
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  left: 0;
  position: relative;
  margin-top: calc(5vh - 5px)!important;
  max-height: 85vh!important;
  overflow: hidden!important;
  transform: none;

  .el-dialog__header {
    .el-dialog__close {
      color: black;
    }
    .el-dialog__close:hover {
      color: white;
    }
  }

  .el-dialog__title {
    font-weight: bold;
  }

  .el-dialog__body {
    max-height: calc(85vh - 110px)!important;
    padding: 20px 20px 5px 20px!important;
    overflow-y: auto;
  }

  .el-dialog__footer {
    padding: 5px 20px 10px 20px!important;
  }
}

.el-dialog.is-fullscreen {
  margin-top: 0px!important;
  max-height: 100vh!important;

  .el-dialog__body {
    max-height: calc(100vh - 110px)!important;
    overflow-y: auto;
  }
}

.dialog-footer {
  display: flex;
  justify-content: center;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// 防止遮罩层被覆盖
.el-loading-mask {
 z-index: 9000!important;
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.top-right-btn {
  position: relative;
  float: right;
}

.show-input {
  input {
    border: none!important;
    border-bottom: 1px solid #DCDFE6!important;
  }
}
